<div class="modal fade" id="modifyOngoingModal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <form id="modify-ongoing-form" class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">修改本次及后续排课</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
            </div>
            <div class="modal-body">
                <!-- 课程、学校、年级、住址、学费、星期多选、开始日期、结束日期、时间、备注 -->
                <input type="hidden" name="student_name" id="modify-ongoing-student" />
                <div class="row g-3">
                    <div class="col-md-6">
                        <label>课程名</label>
                        <select name="course" class="form-select" required></select>
                    </div>
                    <div class="col-md-6">
                        <label>学校</label>
                        <select name="school" class="form-select" required></select>
                    </div>
                    <div class="col-md-6">
                        <label>年级</label>
                        <select name="grade" class="form-select" required></select>
                    </div>
                    <div class="col-md-6">
                        <label>家庭住址</label>
                        <input name="address" type="text" class="form-control" required>
                    </div>
                    <div class="col-md-4">
                        <label>每节学费</label>
                        <input name="fee" type="number" step="0.01" class="form-control" required>
                    </div>
                    <div class="col-12">
                        <label>星期</label>
                        <div class="btn-group" role="group">
                            <!-- 同添加页面的星期按钮 -->
                            <input type="checkbox" class="btn-check" name="weekdays" id="modMon" value="Mon">
                            <label class="btn btn-outline-secondary" for="modMon">一</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modTue" value="Tue">
                            <label class="btn btn-outline-secondary" for="modTue">二</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modWed" value="Wed">
                            <label class="btn btn-outline-secondary" for="modWed">三</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modThu" value="Thu">
                            <label class="btn btn-outline-secondary" for="modThu">四</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modFri" value="Fri">
                            <label class="btn btn-outline-secondary" for="modFri">五</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modSat" value="Sat">
                            <label class="btn btn-outline-secondary" for="modSat">六</label>
                            <input type="checkbox" class="btn-check" name="weekdays" id="modSun" value="Sun">
                            <label class="btn btn-outline-secondary" for="modSun">日</label>
                            <!-- 其余… -->
                        </div>
                    </div>
                    <div class="modal-body">
                        <input type="hidden" name="start_date" id="modify-ongoing-start"/>
                        <div class="row g-3">
                            <div class="col-md-4">
                                <label>结束日期</label>
                                <input name="end_date" type="date" class="form-control" required>
                            </div>
                            <div class="col-md-2">
                                <label>开始</label>
                                <input name="start_time" type="time" class="form-control" required>
                            </div>
                            <div class="col-md-2">
                                <label>结束</label>
                                <input name="end_time" type="time" class="form-control" required>
                            </div>
                            <div class="col-12">
                                <label>备注</label>
                                <textarea name="remark" class="form-control"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <span id="modifyOngoingError" class="text-danger me-auto" style="display:none;"></span>
                        <button type="submit" class="btn btn-primary">保存</button>
                        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">取消</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
